const SaxonJS = require('saxon-js');

SaxonJS.transform({
    stylesheetFileName: "stylesheet.sef.json",
    sourceText: '<math xmlns="http://www.w3.org/1998/Math/MathML"  alttext="complement _{U}A\cap B="><msub><mi>∁</mi><mrow class="MJX-TeXAtom-ORD"><mi>U</mi></mrow></msub><mi>A</mi><mo>∩</mo><mi>B</mi><mo>=</mo></math>',
    destination: "serialized"
}, "async")
.then (output => {
    // response.writeHead(200, {'Content-Type': 'text/html'});
    // response.write(output.principalResult);
    // response.end();
    console.log(output);
})